$(function() {
	$("#footer").load('footer.html', function() {});
	
	var str = sessionStorage.obj;
	console.log(str)
	if(str === undefined) {
		easyDialog.open({
			container: {
				content: '请先登录！'
			},
			autoClose: 2000
		});
		window.location.href = "login.html";
	} else {
		var tel = obj.data.Phone
		$('.main-content').append(
			`
				<div class="container no-padding list">
			<div class="title">订单信息</div>
			<ul class="msg">
				<li class="msg-item">用户名: ${tel}</li>
				<li class="msg-item">收款方: 南京和美信息科技有限公司</li>
				<li class="msg-item">应付总价: <span class="money">9.99元</span></li>
			</ul>
		</div>
		<div class="container no-padding list">
			<div class="title">选择付款方式</div>
			<div class="pay-way">银行卡支付:</div>
			<ul class="pay-list">
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay1.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay2.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay3.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay4.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay5.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay6.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay7.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay8.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay9.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay10.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay11.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/pay12.jpg" />
				</li>
			</ul>
			<div class="pay-way">其它支付方式:</div>
			<ul class="pay-list">
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/zhi1.jpg" />
				</li>
				<li class="pay-item">
					<input name="pay" type="radio" checked="checked" />
					<img src="img/images/zhi2.jpg" />
				</li>
			</ul>

			<button>去支付</button>
		</div>
		`
		)
	}

})